import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';

const tableRouter: AppRouteModule = {
  path: '/table-demo',
  name: 'TableDemo',
  component: LAYOUT,
  redirect: '/table-demo/basic',
  meta: {
    title: 'Table组件',
    icon: 'ion:layers-outline',
    orderNo: 2,
  },
  children: [
    {
      path: 'basicTable',
      name: 'BasicTable',
      component: () => import('/@/views/table/BasicTable.vue'),
      meta: {
        title: '基础表格',
      },
    },
    {
      path: 'fetchTable',
      name: 'FetchTable',
      component: () => import('/@/views/table/FetchTable.vue'),
      meta: {
        title: '远程加载示例',
      },
    },
    {
      path: 'useTable',
      name: 'UseTable',
      component: () => import('/@/views/table/UseTable.vue'),
      meta: {
        title: 'useTable示例',
      },
    },
  ],
};

export default tableRouter;
